import {
    defineStore
} from 'pinia'
import {
    ref
} from 'vue'

export const useRouterStore = defineStore("router", () => {
    const isGetterRouter = ref(false) //全局可用

    //改变状态
    const changeRouter = (value) => {
        isGetterRouter.value = value
    }

    return {
        isGetterRouter,
        changeRouter
    }
})